package com.tangula.web.kashine.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.tangula.web.kashine.entity.HistoryEntity;

@Repository
public interface HistoryEntityRepository extends JpaRepository<HistoryEntity, String> {

	Page<HistoryEntity> findByUserId(String teacherId, Pageable page);

	List<HistoryEntity> findByUserId(String teacherId);

	List<Integer> findMoneyByUserIdAndChange(String string, String string2);

	List<HistoryEntity> findByUserIdAndChange(String condition, String string);

	List<HistoryEntity> findByResavId(String condition);

}
